<?php
require '../oGui/oGui.php';

/* end loading oGUI files --------------------------------------------------- */

require 'ogTemplates/OgWebLayout.class.php';
/* end loading files for oGUI about website --------------------------------- */


$document = new OgWebLayout();
$document->setTitle('First page');

$logo = new OgElement('a');
$logo->addAttribute('href', '#');
$logo->addAttribute('id', 'logo');
$logo->addGettableComponent('logoImg', new OgElement('img'));
$document->getComponent('logoImg')->addAttribute('src', 'images/amedeus.png');

$document->getHeadBox()->addComponent($logo);

  $accordion = new OgAccordion('acc', 'h3', $document);
  $accordion->addTab('Amedeus CMS');
  $accordion->addTab('mWork');
  $accordion->addTab('oGui');


$document->getLeftBox()->addComponent($accordion);


//$document->draw();
$document->toString();
/*
$mpdf = new mPDF();
$mpdf->useOnlyCoreFonts = true;
$mpdf->WriteHTML($document->preRender());
$mpdf->Output();
exit;
*/
//print $document->preRender();
//OgDevHelp::prd($document->preRender());
$usage = memory_get_usage();
echo round($usage/1048576,2)." megabytes";

?>